package com.woniu.new_orange.service_model_gao.service.impl;

import com.woniu.new_orange.entity.Complaint;
import com.woniu.new_orange.mapper.ComplaintMapper;
import com.woniu.new_orange.service_model_gao.service.ComplaintService;
import com.woniu.new_orange.service_model_gao.vo.ComplaintVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Program: new_orange->ComplaintServiceImpl
 * @Description:
 * @Author: gao chaozhe
 * @Date: 2023-02-02 16:52
 * @Version： 1.0
 **/
@Service
public class ComplaintServiceImpl implements ComplaintService {
    @Autowired
    private ComplaintMapper complaintMapper;
    @Override
    public List<ComplaintVo> selectAll(long id) {
        return complaintMapper.selectAll(id);
    }

    @Override
    public List<ComplaintVo> selectAll2() {
        return complaintMapper.selectAll2();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return complaintMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Complaint record) {
        return complaintMapper.insert(record);
    }

    @Override
    public int insertSelective(Complaint record) {
        return complaintMapper.insertSelective(record);
    }

    @Override
    public Complaint selectByPrimaryKey(Long id) {
        return complaintMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Complaint record) {
        return complaintMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Complaint record) {
        return complaintMapper.updateByPrimaryKey(record);
    }
}
